package dao;

import java.util.List;

import pojo.Products;

public interface ProductsDAO {
	Products getProduct(String productid);
	List<Products> getProductList();
	List<String> Search(String productname);
	List<Products> getProductList(String productcatalogid);
	List<Products> Search(String productname,String productcatalog,String[] brand,String[] condition,String rating,String minprice,String maxprice,int page,int productonpage, int sortby);
	boolean updateRating(int averagerating, String productid);
//	public String Compare2 (String spec1, String spec2);
//	public String Compare3 (String spec1, String spec2,String spec3);
//	public String Compare4 (String spec1, String spec2,String spec3,String spec4);
	boolean updatetodatabase(Products d1,int quantity4sell);
	int pagecount(String id, int productonpage, String type);
	public String CompareGeneral(String[] specs);
	List<Products> getProductList(String id, int productonpage, int page,
			int sortby, String type);
}
